package com.cizzy.user.entity;

import cn.hutool.core.util.RandomUtil;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 *
 * </p>
 *
 * @author crissy-月下闲人
 * @since 2023-10-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "UserCount对象", description = "")
@TableName("userCount")
public class UserCount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("user_id")
    private Long userId;

    private Timestamp createAt = new Timestamp(System.currentTimeMillis());

    private Long followCount;

    private Long followerCount;

    private Long favoriteCount;

    private Long workCount;

    public UserCount(Long userId) {
        this.userId = userId;
        this.followCount = 0L;
        this.followerCount = 0L;
        this.favoriteCount = 0L;
        this.workCount = 0L;
        this.createAt = new Timestamp(System.currentTimeMillis());
    }
}
